<template>
	<view class="container" v-if="product.cInvCode">
		
		<view class="panel_box">
			<view class="panel_title">{{product.cInvName}}</view>
			<view class="panel_box_bottom">					
				<view class="panel_bottom_left">存货编码：{{product.cInvCode}}</view>
				<view class="panel_bottom_right"></view>
			</view>

		</view>
		
		
		<view class="panel_box">
			<view class="panel_title">选择操作</view>
			<view class="panel_content">	
			
				<view class="nav_list">
					<view class="nav_item" v-if="product.produc_id" :data-url="'/pages/product/detail/index?id='+product.produc_id+'&code='+product.cInvCode" @click="goPage">
						<view class="item_icon"><uni-icons type="wallet" color="#9a9a9a" :size="icons[60]" /></view>
						<view class="item_txt">点击下单</view>
					</view>
					
					<view class="nav_item" :data-url="'/pages/regood/add/index?code='+product.cInvCode" @click="goPage">
						<view class="item_icon"><uni-icons type="wallet" color="#9a9a9a" :size="icons[60]" /></view>
						<view class="item_txt">要货申请</view>
					</view>

					<view class="nav_item" :data-url="'/pages/inventory/add/index?code='+product.cInvCode" @click="goPage">
						<view class="item_icon"><uni-icons type="wallet" color="#9a9a9a" :size="icons[60]" /></view>
						<view class="item_txt">点击盘点</view>
					</view>
					
					<!--<view class="nav_item" :data-url="'/pages/deliver_confirm/index?status=1&code='+product.cInvCode" @click="goPage">
						<view class="item_icon"><uni-icons type="wallet" color="#9a9a9a" :size="icons[60]" /></view>
						<view class="item_txt">要货确认</view>
					</view>-->
					
		
				</view>
				
			</view>
		</view>
		
		<view class="panel_box">
			<view class="panel_title">产品详情</view>
			<view class="panel_detail" >
				<view class="tr stripe"><view class="td td_1">产品规格：</view><view class="td td_2">{{product.cInvStd}}</view></view>
				<!--<view class="tr stripe"><view class="td td_1">宽：</view><view class="td td_2">12M</view></view>
				<view class="tr stripe"><view class="td td_1">厚度：</view><view class="td td_2">50MM</view></view>-->
			</view>
		</view>
		

	</view>
</template>


<script>
	import  parentPage from '@/common/parent-page.js';
	import {index} from './index.js';
	export default {mixins: [parentPage,index]}
</script>



<style>
	@import './index.css';
</style>
